package cn.ldh.org.service;

import cn.ldh.basic.util.PageList;
import cn.ldh.org.domain.Department;
import cn.ldh.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {

    //加载所有
    List<Department> loadAll();

    // 加载一条
    Department loadById(Long id);

    // 添加
    void save(Department department);

    // 删除
    void delete(Long id);

    // 更新
    void update(Department department);

    // 分页查询
    PageList<Department> queryPage(DepartmentQuery query);

}
